package cn.iocoder.yudao.module.nginxui.controller.admin.eventsconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - Nginx events块配置新增/修改 Request VO")
@Data
public class EventsConfigSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6674")
    private Long id;

    @Schema(description = "主配置", requiredMode = Schema.RequiredMode.REQUIRED, example = "30234")
    @NotNull(message = "主配置不能为空")
    private Long configId;

    @Schema(description = "每个工作进程的最大连接数")
    private Integer workerConnections;

    @Schema(description = "事件模型")
    private String eventModel;

    @Schema(description = "是否允许同时接受多个连接")
    private Integer multiAccept;

    @Schema(description = "是否开启")
    private Integer acceptMutex;

    @Schema(description = "锁的延迟时间")
    private String acceptMutexDelay;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

}